import { NZ_I18N, zh_CN } from 'ng-zorro-antd/i18n';

import { registerLocaleData } from '@angular/common';
import { HttpClientModule } from '@angular/common/http';
import zh from '@angular/common/locales/zh';
import { NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NzBreadCrumbModule } from 'ng-zorro-antd/breadcrumb';
import { NzButtonModule } from 'ng-zorro-antd/button';
import { NzCollapseModule } from 'ng-zorro-antd/collapse';
import { NzFormModule } from 'ng-zorro-antd/form';
import { NzIconModule } from 'ng-zorro-antd/icon';
import { NzInputModule } from 'ng-zorro-antd/input';
import { NzInputNumberModule } from 'ng-zorro-antd/input-number';
import { NzLayoutModule } from 'ng-zorro-antd/layout';
import { NzMessageModule } from 'ng-zorro-antd/message';
import { NzPopconfirmModule } from 'ng-zorro-antd/popconfirm';
import { NzSliderModule } from 'ng-zorro-antd/slider';
import { NzStatisticModule } from 'ng-zorro-antd/statistic';
import { NzSwitchModule } from 'ng-zorro-antd/switch';
import { NzTableModule } from 'ng-zorro-antd/table';
import { NzTagModule } from 'ng-zorro-antd/tag';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { AddGoodsComponent } from './pages/add-goods/add-goods.component';
import { FrameComponent } from './pages/frame//frame.component';
import { GoodsComponent } from './pages/goods/goods.component';
import { WelcomeComponent } from './pages/welcome/welcome.component';

registerLocaleData(zh);

@NgModule({
  declarations: [
    AppComponent,
    FrameComponent,
    WelcomeComponent,
    GoodsComponent,
    AddGoodsComponent,
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    FormsModule,
    HttpClientModule,
    BrowserAnimationsModule,
    NzButtonModule,
    NzLayoutModule,
    NzCollapseModule,
    NzFormModule,
    NzSliderModule,
    NzBreadCrumbModule,
    NzIconModule,
    NzTableModule,
    NzPopconfirmModule,
    NzTagModule,
    NzStatisticModule,
    ReactiveFormsModule,
    NzInputModule,
    NzSwitchModule,
    NzInputNumberModule,
    NzMessageModule,
  ],
  providers: [
    { provide: NZ_I18N, useValue: zh_CN }
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }
